import numpy as  np

a = np.zeros(10)
b = np.array(range(10))

print(1*(a<b))#bool to int 